package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 回收订单对象 recycle_order
 * 
 * @author ruoyi
 * @date 2022-05-22
 */
@ApiModel(value = "回收订单")
@Data
@Accessors(chain = true)
public class RecycleOrder implements Serializable
{
    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    @ApiModelProperty(name = "recycleOrderNo", value = "回收订单号")
    @TableId(value = "recycle_order_no", type = IdType.INPUT)
    @Excel(name = "回收订单号")
    private String recycleOrderNo;

    /** 创建人 */
    @Excel(name = "联系人")
    @ApiModelProperty(value = "创建人")
    private String createdBy;

    /** 联系方式 */
    @Excel(name = "联系方式")
    @ApiModelProperty(name = "phone", value = "联系方式")
    @TableField(whereStrategy = FieldStrategy.NOT_EMPTY)
    private String phone;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    //@Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:dd")
    @ApiModelProperty(name = "createdTime", value = "下单时间")
    private Date createdTime;

    /** 上门时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    //@Excel(name = "上门时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:dd")
    @ApiModelProperty(name = "visitTime", value = "上门时间")
    private Date visitTime;

    /** 取件地址 */
    @Excel(name = "联系地址")
    @ApiModelProperty(name = "address", value = "取件地址")
    private String address;

    /** 预估重量 */
    //@Excel(name = "预估重量")
    @ApiModelProperty(name = "forecastWeight", value = "预估重量")
    private BigDecimal forecastWeight;

    /** 实际重量 */
    @Excel(name = "实际重量")
    @ApiModelProperty(name = "practicalWeight", value = "实际重量")
    private BigDecimal practicalWeight;

    /** 订单状态 */
    //@Excel(name = "订单状态")
    @ApiModelProperty(name = "status", value = "订单状态")
    private String status;

    /** 拍照图片 */
    //@Excel(name = "拍照图片")
    @ApiModelProperty(name = "img", value = "拍照图片")
    private String img;

    /** 备注 */
    //@Excel(name = "备注")
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    /** 更新人 */
    @ApiModelProperty(name = "updatedBy", value = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    //@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:dd")
    @ApiModelProperty(name = "updatedTime", value = "更新时间")
    private Date updatedTime;

    //@Excel(name = "积分")
    @ApiModelProperty(name = "integral", value = "积分")
    private Integer integral;

    //@Excel(name = "下单用户ID")
    @ApiModelProperty(name = "clientId", value = "下单用户ID")
    private Long clientId;

    //@Excel(name = "提供服务综合站ID")
    @ApiModelProperty(name = "merchantId", value = "提供服务综合站ID")
    private Long merchantId;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    //@Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:dd")
    @ApiModelProperty(name = "appointmentTime", value = "预约时间")
    private Date appointmentTime;
    /**
     * 预约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    //@Excel(name = "预约时间止", width = 30, dateFormat = "yyyy-MM-dd HH:mm:dd")
    @ApiModelProperty(name = "appointmentTimeEnd", value = "预约时间止")
    private Date appointmentTimeEnd;
    /**
     * 快递单号
     */
    //@Excel(name = "快递单号")
    @ApiModelProperty(name = "kuaidinum", value = "快递单号")
    private String kuaidinum;

    /**
     * 订单类型（平台快递单/综合站订单）
     */
    //@Excel(name = "订单类型（平台快递单/综合站订单）")
    @ApiModelProperty(name = "orderType", value = "订单类型（平台快递单/综合站订单）")
    private String orderType;

    /** 包裹体积 */
    @Excel(name = "包裹体积")
    @ApiModelProperty(name = "volume", value = "包裹体积")
    private BigDecimal volume;

    @TableField(exist = false)
    @ApiModelProperty(name = "commodities", value = "回收商品列表")
    private List<RecycleCommodity> commodities;

}
